package chapter1.service;

import chapter1.domain.entity.User;
import chapter1.domain.entity.dto.UserDto;
import chapter1.domain.entity.vo.Result;

/**
 * 业务层接口-用户
 *
 * @author 郑植航
 * @since 2025/5/25 20:57
 */
public interface IUserService extends IBaseService<User, UserDto> {
    boolean existById(int id);

    User findById(int id);


    Result list();

    Result create(UserDto dto);

    Result update(UserDto dto, int id);

    Result toggle(int id);

    boolean deptInUse(int deptId);

    boolean roleInUse(int roleId);
}
